package indi.wshape1.takeawaydeliveryinfo.service;

import com.baomidou.mybatisplus.extension.service.IService;
import indi.wshape1.takeawaydeliveryinfo.pojo.Admin;

import java.util.List;

/**
 * @author Wshape1
 * @description 针对表【admin】的数据库操作Service
 * @since 2023-01-17 12:57:25
 */
public interface AdminService extends IService<Admin>, PersonService {

    /**
     * 根据blockName keyword获取admin列表
     * blockName为null则无限制
     * keyword为空则无限制
     *
     * @param blockName
     * @param keyword
     * @return
     */
    List<Admin> getListByBlockNameAndKeyword(String blockName, String keyword);

    /**
     * 通过blockIds将admin的blockName设置为null
     * @param ids
     * @return
     */
    int freeAdminBatchByBlockIds(List<Integer> ids);
}
